let home = $env.HOME
let dotFilePath = ([$home "Codes" "dotFiles"] | path join) # TODO: 改成直接使用脚本路径，现在 nu 还不支持

def ln-file [file] {
    ln -s ($dotFilePath | path join $file) ($home | path join $file)
}

ln-file ".zshrc"
ln-file ".tmux.conf"
ln-file ".config/nushell"
ln-file ".config/nvim"